package me.luraframework.gateway.module.log;

import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

import java.time.LocalDateTime;

/**
 * @ description: GatewayLog
 * @ author: Liu Ran
 * @ data: 7/11/23 10:49
 */

@Data
@Table("gateway_log")
public class GatewayLog {
    @Id
    private Long id;
    /**访问实例*/
    private String targetServer;
    /**请求路径*/
    private String requestPath;
    /**请求方法*/
    private String requestMethod;
    /**协议 */
    private String url;
    /**请求体*/
    private String requestBody;
    /**响应体*/
    private String responseData;
    private Integer responseSize;
    /**请求ip*/
    private String ip;
    /**
     * 请求地址
     */
    private String address;
    /**请求时间*/
    private LocalDateTime requestTime;
    /**响应时间*/
    private LocalDateTime responseTime;
    /**执行时间*/
    private long executeTime;


}
